package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.entity.PolicyInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.mapping.ResultSetType;
import org.apache.ibatis.session.ResultHandler;

/**
 * @author: Bin.L
 * @date: 2021/7/16 0016 14:49
 * @Description:
 */
@Mapper
public interface PolicyInfoMapper extends BaseMapper<PolicyInfo> {

    @Select("select * from policy_info")
    @Options(resultSetType = ResultSetType.FORWARD_ONLY, fetchSize = Integer.MIN_VALUE)
    @ResultType(PolicyInfo.class)
    void readStreamingData(ResultHandler<PolicyInfo> handler);



}
